import request from '@/utils/request'

// 查询维修内容列表
export function listProjectInfo(query) {
  return request({
    url: '/repair/projectInfo/list',
    method: 'get',
    params: query
  })
}

// 查询维修内容详细
export function getProjectInfo(infoId) {
  return request({
    url: '/repair/projectInfo/' + infoId,
    method: 'get'
  })
}

// 新增维修内容
export function addProjectInfo(data) {
  return request({
    url: '/repair/projectInfo',
    method: 'post',
    data: data
  })
}

// 修改维修内容
export function updateProjectInfo(data) {
  return request({
    url: '/repair/projectInfo',
    method: 'put',
    data: data
  })
}

// 删除维修内容
export function delProjectInfo(infoId) {
  return request({
    url: '/repair/projectInfo/' + infoId,
    method: 'delete'
  })
}
